﻿namespace Cik.Gapi4Net.Core.CustomAttribute
{
    using System;

    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Property,
                    AllowMultiple = false,
                    Inherited = true)]
    public class UrlElementAttribute : Attribute
    {
        public string Name { get; private set; }

        public bool Required { get; private set; }

        public UrlElementAttribute(string name)
        {
            Name = name;
            Required = true;
        }
    }
}